/********************************************************************
*Copyright (C) 2011,China CQU EasyBoard Team.
*All rights reserved.
*
*File Name:listenserver.h
*File ID  :
*Summary  :this file declares server that listen for client connect
*ListenServer is the subclass of QTcpServer,so ListenServer answer for
*the client connect and accept
*
*Version  :1.0.0
*Author   :YaoBoYuan
*Date     :2011-5-28
********************************************************************/

#ifndef LISTENSERVER_H
#define LISTENSERVER_H

#include <QObject>
#include <QTcpServer>

#include "connectsocket.h"

class ListenServer : public QTcpServer
{
    Q_OBJECT
public:
    explicit ListenServer(QObject *parent = 0);

signals:
    void newConnection(ConnectSocket *connector);

public slots:
    void processNewConnection();

};

#endif // LISTENSERVER_H
